/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.io.File;

/**
 * <p>Project: javaseapp - Dir2
 * <p>Powered by webrx On 2021-08-11 09:07:50
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 16
 */
public class Dir3 {
    public static void main(String[] args) {
        File f = new File("c:/abc");
        if (f.exists() && f.isDirectory()) {
            System.out.println(f.delete()); //只能删除空目录，没有任何对象
        } else {
            f.mkdir(); //建立一级目录 c:/user
            f.mkdirs();//递归建立多级目录 c:/user/jav/html
        }

    }
}
